-- GENERATED SPELL FOR [Nexus Stalker] --


function spell0_18314(pUnit, Event) --@Gouge,n/a--
pUnit:FullCastSpellOnTarget(34940,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18314', 4335, 1)
end

function spell1_18314(pUnit, Event) --@Phantom Strike,n/a--
pUnit:FullCastSpellOnTarget(33925,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18314', 12000, 1)
end

function spell2_18314(pUnit, Event) --@Phantom Strike,n/a--
pUnit:FullCastSpellOnTarget(39332,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18314', 12000, 1)
end

function Sorts_18314(pUnit, Event)
local choix_sorts_18314 = math.random(0, 2)
if choix_sorts_18314 == 0 then
pUnit:RegisterEvent('spell0_18314', 1, 1)
end
if choix_sorts_18314 == 1 then
pUnit:RegisterEvent('spell1_18314', 1, 1)
end
if choix_sorts_18314 == 2 then
pUnit:RegisterEvent('spell2_18314', 1, 1)
end
end

function mob18314_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18314', math.random(1500, 3000), 1)
end

function mob18314_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18314_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18314_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18314, 1, 'mob18314_Action')
RegisterUnitEvent(18314, 2, 'mob18314_Leave')
RegisterUnitEvent(18314, 3, 'mob18314_Kill')
RegisterUnitEvent(18314, 4, 'mob18314_Die')
